﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace FakeXiecheng.API.Moldes
{
    /// <summary>
    /// 旅游路线
    /// </summary>
    public class TouristRoute
    {
        [Key]
        public Guid Id { get; set; }
        [Required]
        [MaxLength(100)]
        public string Title {  get; set; }
        [Required]
        [MaxLength(1500)]
        public string Description { get; set; }
        [Column(TypeName ="decimal(18,2)")]
        public decimal OriginalPrice {  get; set; }
        [Range(0.0,1.0)]
        public double? DiscountPresent { get; set; }
        public DateTime CreateTime { get; set; }
        public DateTime? UpdateTime { get; set; }
        public DateTime? DepartureTime { get; set; }
        [MaxLength]
        public string Features {  get; set; }
        [MaxLength]
        public string Fees {  get; set; }
        [MaxLength]
        public string Notes {  get; set; }
        public ICollection<TouristRoutePicture> TouristRoutePictures {  get; set; }
        =new List<TouristRoutePicture>();//作用使代码更建壮，避免一些错误
        //评分
        public double? Rating { get; set; }
        //旅游天数
        public TravelDays? TravelDays { get; set; }
        //旅游类型
        public TripType? TripType {  get; set; }
        //旅游线路
        public DepartureCity? DepartureCity { get; set; }
    }
}
